﻿using Domain.Entity;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EfCore.Configers
{
    public class ERConfigers : IEntityTypeConfiguration<ER>
    {
        public void Configure(EntityTypeBuilder<ER> builder)
        {
            builder.ToTable("ER"); // 设置表名
            builder.HasKey(e => e.ResId); // 设置主键HunmaMajorName
            builder.Property(e => e.ResId).HasColumnName("ResId").ValueGeneratedOnAdd(); // 设置自增列
            builder.Property(e => e.HumanName).HasColumnName("HumanName"); // 设置姓名列
            builder.Property(e => e.EngageType).HasColumnName("EngageType"); // 设置招聘类型列
            builder.Property(e => e.HumanAddress).HasColumnName("HumanAddress"); // 设置地址列
            builder.Property(e => e.HumanPostcode).HasColumnName("HumanPostcode"); // 设置邮编列
            builder.Property(e => e.HumanMajorKindId).HasColumnName("HumanMajorKindId"); // 设置职位分类编号列
            builder.Property(e => e.HumanMajorKindName).HasColumnName("HumanMajorKindName"); // 设置职位分类名称列
            builder.Property(e => e.HumanMajorId).HasColumnName("HumanMajorId"); // 设置职位编号列
            builder.Property(e => e.HunmaMajorName).HasColumnName("HunmaMajorName"); // 设置职位名称列
            builder.Property(e => e.HumanTelephone).HasColumnName("HumanTelephone"); // 设置电话号码列
            builder.Property(e => e.HumanHomephone).HasColumnName("HumanHomephone"); // 设置家庭电话列
            builder.Property(e => e.HumanMobilephone).HasColumnName("HumanMobilephone"); // 设置手机列
            builder.Property(e => e.HumanEmail).HasColumnName("HumanEmail"); // 设置邮箱列
            //builder.Property(e => e.Email).HasColumnName("Email"); // 设置邮箱列
            builder.Property(e => e.HumanHobby).HasColumnName("HumanHobby"); // 设置兴趣爱好列
            builder.Property(e => e.HumanSpeciality).HasColumnName("HumanSpeciality"); // 设置特长列
            builder.Property(e => e.HumanSex).HasColumnName("HumanSex"); // 设置性别列
            builder.Property(e => e.HumanReligion).HasColumnName("HumanReligion"); // 设置宗教信仰列
            builder.Property(e => e.HumanParty).HasColumnName("HumanParty"); // 设置政治面貌列
            builder.Property(e => e.HumanNationality).HasColumnName("HumanNationality"); // 设置国籍列
            builder.Property(e => e.HumanRace).HasColumnName("HumanRace"); // 设置民族列
            builder.Property(e => e.HumanBirthday).HasColumnName("HumanBirthday"); // 设置出生日期列
            builder.Property(e => e.HumanAge).HasColumnName("HumanAge"); // 设置年龄列
            builder.Property(e => e.HumanEducatedDegree).HasColumnName("HumanEducatedDegree"); // 设置学历列
            builder.Property(e => e.HumanEducatedYears).HasColumnName("HumanEducatedYears"); // 设置教育年限列
            builder.Property(e => e.HumanEducatedMajor).HasColumnName("HumanEducatedMajor"); // 设置学历专业列
            builder.Property(e => e.HumanCollege).HasColumnName("HumanCollege"); // 设置毕业院校列
            builder.Property(e => e.HumanIdcard).HasColumnName("HumanIdcard"); // 设置身份证号列
            builder.Property(e => e.HumanBirthplace).HasColumnName("HumanBirthplace"); // 设置出生地列
            builder.Property(e => e.DemandSalaryStandard).HasColumnName("DemandSalaryStandard"); // 设置薪酬标准列
            builder.Property(e => e.HumanHistoryRecords).HasColumnName("HumanHistoryRecords"); // 设置个人履历列
            builder.Property(e => e.Remark).HasColumnName("Remark"); // 设置备注列
            builder.Property(e => e.Recomandation).HasColumnName("Recomandation"); // 设置推荐意见列
            builder.Property(e => e.HumanPicture).HasColumnName("HumanPicture"); // 设置照片列
            builder.Property(e => e.AttachmentName).HasColumnName("AttachmentName"); // 设置档案附件列
            builder.Property(e => e.CheckStatus).HasColumnName("CheckStatus"); // 设置复核状态列
            builder.Property(e => e.Register).HasColumnName("Register"); // 设置登记人列
            builder.Property(e => e.RegistTime).HasColumnName("RegistTime"); // 设置登记时间列
            builder.Property(e => e.Checker).HasColumnName("Checker"); // 设置复核人姓名列
            builder.Property(e => e.CheckTime).HasColumnName("CheckTime"); // 设置复核时间列
            builder.Property(e => e.InterviewStatus).HasColumnName("InterviewStatus"); // 设置面试状态列
            builder.Property(e => e.TotalPoints).HasColumnName("TotalPoints"); // 设置总分列
            builder.Property(e => e.TestAmount).HasColumnName("TestAmount"); // 设置考试次数列
            builder.Property(e => e.TestChecker).HasColumnName("TestChecker"); // 设置测试复核人列
            builder.Property(e => e.TestCheckTime).HasColumnName("TestCheckTime"); // 设置测试复核时间列
            builder.Property(e => e.PassRegister).HasColumnName("PassRegister"); // 设置通过登记人姓名列
            builder.Property(e => e.PassRegistTime).HasColumnName("PassRegistTime"); // 设置通过登记时间列
            builder.Property(e => e.PassChecker).HasColumnName("PassChecker"); // 设置通过复核人姓名列
            builder.Property(e => e.PassCheckTime).HasColumnName("PassCheckTime"); // 设置通过复核时间列
            builder.Property(e => e.PassCheckStatus).HasColumnName("PassCheckStatus"); // 设置通过的复核状态列
            builder.Property(e => e.PassCheckComment).HasColumnName("PassCheckComment"); // 设置录用申请审核意见列
            builder.Property(e => e.PassPassComment).HasColumnName("PassPassComment"); // 设置录用申请审批意见列
                                                                                       // 设置其他属性的配置...
        }
    }
}
